
import UIKit

class YYHomeViewController: YYBaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        visitorView?.setupInfo("关注一些人,回这里看看有什么惊喜", image: nil)


        //闭包执行
        let closure = {
            printLog("回调成功")
        }

        visitorView?.registerClosure = closure

//        printLog(YYHTTPClient.shareInstance)
//        printLog(YYHTTPClient.shareInstance)
//
//        printLog(YYHTTPClient())

        YYHTTPClient.shareInstance.request(.GET, URLString: "", parameters: nil, progress: nil, success: { (_, JSON) -> Void in

            }) { (_, error) -> Void in

        }
    }

}
